package cate.game.role.pvp.eliterace.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.pvp.eliterace.data.EliteRaceSpec;
import easy.java.dev.note.NoteField;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import static cate.common.table.d.GDPointRace.WHOLE_SEASON_MILLIS;
import static cate.game.client.msg.id.MsgIdBEliteRace.LITE_DATA_RESP;

@AllArgsConstructor
@NoArgsConstructor
@ClientMsg(title = "简要消息 返回")
public class EliteRaceLiteDataResp implements MsgOutput {

    public EliteRaceSpec spec;

    @NoteField(value = "当前赛季开启时间")
    public long seasonStartTime;

    @NoteField(value = "下个赛季开始的时间")
    public long nextSeasonStartTime;

    @NoteField(value = "当前赛季持续时间")
    public final long wholeSeasonTime = WHOLE_SEASON_MILLIS;

    @NoteField(value = "是否开启预告", detail = "1 开启")
    public byte notice;

    @NoteField(value = "当前是否有竞猜可以参与")
    public byte bet;

    @NoteField(value = "当前阶段是否有红包可以领取")
    public byte redPacket;

    @Override
    public MsgConfig conf() {
        return LITE_DATA_RESP;
    }
}
